package charbai;

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class BufferedInputStreamDemo {
public static void main(String[] args) {
	Reader input=null;
	BufferedReader put=null;
	try {
		input=new FileReader("e:/text.txt");
		 put=new BufferedReader(input);
	String readLine = put.readLine();
		 System.out.println(readLine);
	} catch (FileNotFoundException e) {
		e.printStackTrace();
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}finally{
		try {
			put.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	 


}
}
